
TARGET = ssd20x-lcd-init

all: $(TARGET)

%.o: %.c
	$(CC) $(CFLAGS) -c -o $@ $^

ssd20x-lcd-init: main.o
	$(CC) -o $@ $^ $(LDFLAGS) -lm -lmi_disp -lmi_panel -lmi_gfx -lmi_sys -lmi_common -ldl  -lpthread

.PHONY: clean

clean:
	rm -rf *.o $(TARGET)

